package com.yonyou.brigade.third_parties.tuniu.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.yonyou.brigade.third_parties.tuniu.dao.TnUserHistoryMapper;
import com.yonyou.brigade.third_parties.tuniu.model.TnUserHistory;
import com.yonyou.brigade.third_parties.tuniu.service.ITnUserHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author duhqh@yonyou.com
 * @since 2018-11-06
 */
@Service
public class TnUserHistoryServiceImpl extends ServiceImpl<TnUserHistoryMapper, TnUserHistory> implements ITnUserHistoryService {

    @Autowired
    TnUserHistoryMapper tnUserHistoryMapper;

    @Override
    public String getUidByPersonCode(String personCode) {
        return tnUserHistoryMapper.selectByPersonCode(personCode);
    }

    @Override
    public int updateByUid(Map params) {
        return tnUserHistoryMapper.updateByUid(params);
    }
}
